<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class ResponseController extends Controller
{
   //文件下载
    public function getDownload(){
        return response()->download('./upload20161121/1.png');
    }
    //响应
    public function getIndex(){
        //响应字符串
        // return '字符串';
        //返回模板
        // return view('test.fileup');
        //返回json格式的字符串
        // return response()->json(['username'=>'li','age'=>'18','sex'=>'男']);
        //页面跳转
        return redirect('test/form');
    }
}